import request from '@/router/axios';

//添加标签分组
export const addGroup = (data) => {
    return request({
        url: '/api/manager-api/mx-label-group/insert',
        method: 'post',
        data: data
    })
}
//修改标签分组
export const updateGroup = (data) => {
    return request({
        url: '/api/manager-api/mx-label-group/update',
        method: 'post',
        data: data
    })
}
//删除标签分组
export const deleteGroup = (data) => {
    return request({
        url: '/api/manager-api/mx-label-group/delete',
        method: 'post',
        params: data
    })
}
//删除标签分组
export const listGroup = () => {
    return request({
        url: '/api/manager-api/mx-label-group/queryList',
        method: 'get',
    })
}

//新增标签
export const addTag = (data) => {
    return request({
        url: '/api/manager-api/mx-label/insert',
        method: 'post',
        data: data
    })
}

//修改标签
export const updateTag = () => {
    return request({
        url: '/api/manager-api/mx-label/update',
        method: 'post',
    })
}

//删除标签
export const deleteTag = (data) => {
    return request({
        url: '/api/manager-api/mx-label/delete',
        method: 'post',
        params: data
    })
}

//标签列表
export const listTag = (data) => {
    return request({
        url: '/api/manager-api/mx-label/queryList',
        method: 'get',
        params: data
    })
}
